
file(GLOB_RECURSE SOURCES *.c *.cpp ./Ano-Protocol/*.c)

set(INCLUDE_DIRS "." "./Ano-Protocol" )
message(STATUS "HFauto: ${SOURCES}")
message(STATUS "HFauto: ${INCLUDE_DIRS}")

idf_component_register(
        SRCS
        ${SOURCES}
        INCLUDE_DIRS
        ${INCLUDE_DIRS}
        REQUIRES
        bt spi_flash nvs_flash bt driver log app_update
        spiffs protocol_examples_common
        mpu6050
#        json_parser modbus pid_ctrl wifi_connect mdns esp_schedule
#        base_component
#        base_peripheral
#        file_system
#        filters
#        format
#        logger
#        math
#        monitor
#        pid
#        serialization
#        socket
#        task
#        timer
#        wifi
#        event_manager
#        display
#        display_drivers
#        led
#        lvgl
#        littlefs
)
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-designator-order -Wno-unused-const-variable -fpermissive -Wmissing-field-initializers)
